package com.cooper.scraper.show;

import com.cooper.android.comm.Resource;

import android.content.Context;
import android.graphics.Bitmap;
import android.view.View;

public abstract class FanartViewHolder<T extends Resource> {
	
	private T resource;
	

	public abstract void setFanart(Bitmap fanart);
	
	public FanartViewHolder(Context context){
		super();
		createRootView(context);
		getRootView().setTag(this);
	}

	public T getResource() {
		return resource;
	}

	public void setResource(T resource) {
		this.resource = resource;
	}

	public abstract View getRootView();
	
	public abstract void clean();


	protected abstract void createRootView(Context context);
	
	
}
